package com.itlong.cloud.operate.dao;


import com.itlong.cloud.POJO.VO.operate.OperateDeviceWhiteListAuthFileConsumeRecordsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface IOperateDeviceWhiteListAuthFileConsumeRecordsDao {


    
    /**
    *<desc>
    * 保存授权文件消费信记录信息
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-08-11 11:23
    * @Param  params 保存参数map
    * @Return      
    * @Exception   
    * 
    */
    Integer save(Map<String, Object> params);


     /**
     *<desc>
     *   分页获取设备白名单消费授权文件消费记录信息
     *</desc>
     *
     * @Author  chengshican
     * @Date   2020-08-11 14:20
     * @Param params 查询参数
     * @Return
     * @Exception
     *
     */
    List<OperateDeviceWhiteListAuthFileConsumeRecordsVO> getWhiteListAuthFileConsumeRecordsByPage(Map<String, Object> params);

    
    /**
    *<desc>
    * 获取白名单消费记录信息数量
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-08-11 14:21
    * @Param  params 查询参数
    * @Return      
    * @Exception   
    * 
    */
    Integer  getWhiteListAuthFileConsumeRecordsPageCount(Map<String, Object> params);



    /**
    *<desc>
    * 根据授权规则id  ruleId查询授权文件消费信息
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-08-11 14:22
    * @Param ruleId 规则id
    * @Return
    * @Exception
    *
    */
    OperateDeviceWhiteListAuthFileConsumeRecordsVO getWhiteListAuthFileConsumeRecordsByRuleId(@Param("ruleId") String ruleId);
}
